From: Jan Beulich Date: Tue, 29 Sep 2015 11:56:03 +0000 (+0200) Subject: x86/p2m-pt: ignore pt-share flag for shadow mode guests X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2475 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=c0a85795d864dd64c116af661bf676d66ddfd5fc;p=xen.git x86/p2m-pt: ignore pt-share flag for shadow mode guests There is no page table sharing in shadow mode. Signed-off-by: Jan Beulich Reviewed-by: George Dunlap --- diff --git a/xen/arch/x86/mm/p2m-pt.c b/xen/arch/x86/mm/p2m-pt.c index 5be6212e30..e61d5033d3 100644 --- a/xen/arch/x86/mm/p2m-pt.c +++ b/xen/arch/x86/mm/p2m-pt.c @@ -647,7 +647,7 @@ p2m_pt_set_entry(struct p2m_domain *p2m, unsigned long gfn, mfn_t mfn, if ( iommu_enabled && need_iommu(p2m->domain) ) { - if ( iommu_hap_pt_share ) + if ( iommu_use_hap_pt(p2m->domain) ) { if ( old_mfn && (old_mfn != mfn_x(mfn)) ) amd_iommu_flush_pages(p2m->domain, gfn, page_order);